package com.sangeng.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddCategoryDto {
    @NotBlank(message = "分类名称不能为空")
    private String name;
    @NotBlank(message = "分类描述不能为空")
    private String description;
    @NotBlank(message = "分类状态未选择")
    private String status;
}
